package com.liliudong.template.common.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.liliudong.template.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统用户表
 *
 * @author ldli5
 * @date 2024/06/18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "sys_user")
public class SysUser extends BaseEntity {

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`", select = false)
    private String password;

    /**
     * 部门编码
     */
    private String deptNo;

    /**
     * 部门名称
     */
    @TableField(exist = false)
    private String deptName;
}